import { PLATFORM_Map } from "@/constant/index";
import usernager from "@/assets/images/leftminsvg/usernager.svg?component";
export default {
	path: '/user-manager',
	redirect: '/manage/user-manager/users-manager',
	meta: {
		title: '单位用户',
		showLink: true,
		rank: 7,
		icon: usernager,
		platform: [PLATFORM_Map.manage]
	},
	children: [
		{
			name: 'users-manager',
			path: '/manage/user-manager/users-manager',
			component: () => import('@/views/manage/user-manager/users-manager/index.vue'),
			meta: {
				title: '用户管理',
				showParent: true,
				roles:['system.manager.find']
			}
		},
		{
			name: 'user-roles-manager',
			path: '/manage/user-manager/roles-manager',
			component: () => import('@/views/manage/user-manager/roles-manager/index.vue'),
			meta: {
				title: '用户角色',
				showParent: true,
				roles:['system.role.find']
			}
		},
		{
			name: 'unit-authorization',
			path: '/manage/user-manager/unit-authorization',
			component: () => import('@/views/manage/user-manager/unit-authorization/index.vue'),
			meta: {
				title: '单位授权',
				showParent: true,
				roles:['system.unity-auth.select']
			}
		}
	]
} satisfies RouteConfigsTable;
